﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;
using ObjectPersistence;

public partial class Admin_Controls_Mod_Contact_ContactView : Controller<Contact>
{
    ContactAssembler service = new ContactAssembler();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
           
            int id = GetID("id");
            Model = service.ReadSingleByKey(id);
            if (Model == null) View("Warring");

            Contact1.UpdateView(Model);
            Model.IsRead = true;
            service.MakePersistent(Model, true);

        }
    }
}
